class Comment < ActiveRecord::Base
	self.primary_key = :comment_id
	belongs_to :user
	belongs_to :post
	validates_presence_of :content, :message => 'Post is blank !'
	validates_length_of :content, :maximum => 250, :message => 'Max.length 250 character !'
	validates_length_of :content, :minimum => 10, :message => 'Min.length 10 character !'

end
